<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//测试
Route::any('/admin/test','TestController@test');
Route::any('/admin/test1','TestController@test1');
Route::get('/', 'IndexController@index');
Route::get('/index', 'IndexController@welcome')->middleware('checkId');
Route::get('/index/getUserName/{name?}', function ($name = "") {
    return $name;
});
//管理员路由
Route::get('/admin/getAdminData','AdminController@list');
Route::any('/admin/adminAdd','AdminController@store');